package sugarbind_input

class Source_Type {

    String source_Type_Name
	
    static constraints = {
			source_Type_Name(blank:false)
			source_Type_Name(unique:true)
	}
	
	static hasMany = [sources: Source]
	
	static mapping = {
//		id column: 'source_type_id'
		id generator: 'sequence', params: [sequence: 'source_type_id_seq']
	}
	
	public String toString(){
		source_Type_Name //+ " " + id
	}
}
